﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Ridofy.RiaClient.Web.Models;
using Ridofy.RiaClient.Web.Services;

namespace Ridofy.RiaClient.Web.Tests
{
    [TestClass]
    public class UserSongCollectionTest
    {
        [TestMethod]
        public void GetRecentSongs()
        {
            UserSongCollection usc = new UserSongCollection("antolingarcia");
            List<Songs> songs = usc.GetRecentSongs().ToList();
            Assert.IsNotNull(songs);
            Assert.IsTrue(songs.Count > 0, "Empty List of Songs");
            foreach (var item in songs)
            {
                Console.WriteLine(item.SongName + " " + item.Artist + " " + item.Album);
            }

        }
    }
}
